<!-- start user-form  -->
<form method="POST">
<table border="0" cellpadding="0" cellspacing="0"  id="id-form">
<tr>
	<th valign="top">Username:</th>
	<td><input type="text" class="inp-form" name="username" /></td>
	<td></td>
</tr>
<tr>
	<th valign="top">Password:</th>
	<td><input type="text" class="inp-form-error" name="password"/></td>
	<td><div class="error-left"></div><div class="error-inner">This field is required.</div></td>
</tr>
<tr>
	<th valign="top">Aktif:</th>
	<td>	
		<select name="aktif" class="styledselect_form_1">
			<option value="0">Tidak Aktif</option>
			<option value="1">Aktif</option>
		</select>
	</td>
	<td></td>
</tr>
<tr>
	<th valign="top">Level:</th>
	<td>
		<select id="level" name="level" class="styledselect_form_1">
			<option value="1">Admin</option>
			<option value="2">Alumni</option>
		</select>
	</td>
	<td></td>
</tr> 
<tr style="display:none" id="alumni_form">
	<td colspan="2">
		<table>
		<tr>
			<th valign="top">Nama Lengkap</th>
			<td><input type="text" name="nama" class="inp-form" /></td>
		</tr>
		<tr>
			<th valign="top">Gender</th>
			<td>
				<select name="jk" class="styledselect_form_1">
					<option value="p">Perempuan</option>
					<option value="l">Laki-laki</option>
				</select>
			</td>
		</tr>
		<tr>
			<th valign="top">Pekerjaan</th>
			<td><input type="text" name="pekerjaan" class="inp-form" /></td>
		</tr>
		<tr>
			<th valign="top">Alamat</th>
			<td><textarea name="alamat" class="form-textarea" /></textarea></td>
		</tr>
		<tr>
			<th valign="top">Telepon</th>
			<td><input type="text" name="telepon" class="inp-form" /></td>
		</tr>
		<tr>
			<th valign="top">E-mail</th>
			<td><input type="text" name="email" class="inp-form" /></td>
		</tr>
		<tr>
			<th valign="top">Handphone</th>
			<td><input type="text" name="hp" class="inp-form" /></td>
		</tr>
		<tr>
			<th valign="top">Status</th>
			<td>
				<select name="status" class="styledselect_form_1">
					<option value="belum menikah">Belum Menikah</option>
					<option value="menikah">Sudah Menikah</option>
				</select>
			</td>
		</tr>
		</table>
	</td>
</tr>
<tr>
	<th>&nbsp;</th>
	<td valign="top">
		<input type="submit" name="add_user" value="" class="form-submit" />
		<input type="reset" value="" class="form-reset"  />
	</td>
	<td></td>
</tr>
</table>
</form>
<div class="clear"></div>
<!-- end user-form  -->
<script type="text/javascript">
$(function(){
	$('#level_container').click(function(){
		var level = $("#level_input").val();	
		if(level == "Alumni"){		
			$("#alumni_form").show();
		}else if(level == "Admin"){
			$("#alumni_form").hide();
		}
	});
});
</script>  